package com.itheima.dao;

import com.itheima.pojo.Menu;

import java.util.List;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import org.apache.ibatis.annotations.Param;

public interface MenuDao {
    public Page<Menu> queryByCondition(String queryString);

    public void add(Menu menu);

    public Menu findById(Integer id);

    public void update(Menu menu);
    List<Menu> findParentMenuByUserName(String username);

    List<Menu> findChildMenuListByParentId(@Param("id") Integer id,@Param("username") String username);

    public void delete(Integer id);

    public long findCountByCheckItemId(Integer id);

    public List<Menu> findAll();

    List<Menu> findChildren(Integer id);
}
